package com.xiangyi.teachingsystem.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.xiangyi.teachingsystem.validation.groups.GroupInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserGroup {
    //自增id
    @NotNull(message = "id不能为空",groups = {GroupInfo.class})
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //任务标识
    @NotNull(message = "taskId不能为空")
    private Integer taskId;
    //小组名称
    @NotNull(message = "小组名称")
    private String groupName;
    //小组组长标识
    @NotNull(message = "leaderId不能为空")
    private Integer leaderId;
    //小组组长名称
    @TableField(exist = false)
    private String name;

    //教师打分
    @TableField(exist = false)
    private String grade;
    //提交状态
    @TableField(exist = false)
    private Boolean commitStatus;
    //教师评价
    @TableField(exist = false)
    private String comment;
    @TableField(exist = false)
    private String summary;
}
